Reclamo = function(){
	return {
		generate: function(){
			Asg.Window.openWindow("reportes/reclamos", Ext.getCmp("asgSeguroForm").getForm().getValues());
		},
		initConfig: function(config){
			return {
				items: {
					xtype: "form",
					id: "asgSeguroForm",
					margins: "5 5 5 5",
					border: false,
					height: 260,
					buttons: [
				          {
				        	  xtype: "button",
				        	  text: "Generar Reporte",
				        	  iconCls: Asg.constants.XLS_ICON,
				        	  minWidth: 125,
				        	  handler: Reclamo.generate
				          },{
				        	  text: "Borrar Filtros",
				        	  iconCls: Asg.constants.CANCEL_ICON,
				        	  minWidth: 125,
				        	  handler: function(){
	        	        		   Ext.getCmp("asgSeguroForm").getForm().reset();
	        	        	  }
	    	        	 }
		            ],
					items: {
						xtype: "fieldset",
						title: "PARAMETROS DE BUSQUEDA",
						style: "background: #FFFFFF;",
						layout: {
        	        		type: "table",
							columns: 2,
							tableAttrs: {
					            style: {width: "480px"},
					            align: "center"
							}
        	        	},
        	        	defaults: Asg.Form.defaults({width: 230, labelAlign: "top"}),
        	        	items: [
    	        	        {
    	        	        	xtype: "textfield",
    	        	        	name: "asgSeguroForm.asgPolizaNumero",
    	        	        	fieldLabel: "No. Poliza",
    	        	        	colspan: 2
    	        	        },{
    	        	        	xtype: "textfield",
    	        	        	name: "asgSeguroForm.asgClienteNombreCompleto",
    	        	        	fieldLabel: "Cliente / Raz\u00F3n Social / Nombre Comercial",
    	        	        	width: 470,
    	        	        	colspan: 2
    	        	        },{
    	        	        	xtype: "textfield",
    	        	        	name: "asgSeguroForm.asgResponsable",
    	        	        	fieldLabel: "Responsable",
    	        	        	width: 470,
    	        	        	colspan: 2
    	        	        },{
    	        	        	xtype: "datefield",
    	        	        	name: "asgSeguroForm.asgFechaInicio1",
    	        	        	submitFormat: "Ymd",
    	        	        	fieldLabel: "Fecha Proximo Seguimiento",
    	        	        	value: config.asgFechaInicio1
    	        	        },{
    	        	        	xtype: "datefield",
    	        	        	name: "asgSeguroForm.asgFechaInicio2",
    	        	        	submitFormat: "Ymd",
    	        	        	fieldLabel: " ",
    	        	        	labelSeparator: "&nbsp;",
    	        	        	value: config.asgFechaInicio2
    	        	        }
	        	        ]
					}
				}
			};
		}
	};
}();